package com.zjm.structural.proxy.demo03_cglib;

public class Client {
    public static void main(String[] args) {
        // 创建目标对象
        TeacherDao target = new TeacherDao();
        // 创建代理对象
        TeacherDao proxyInstance = (TeacherDao) new ProxyFactory(target).getProxyInstance();
        // 调用代理对象的方法
        proxyInstance.teach();

    }
}
